public class SportCar extends Car {
	private boolean isCabriolet;
	private double price;
	private boolean isSportCar;
	

	
	
	SportCar(int numberOfDoors, boolean isSportCar, boolean isCabriolet, double price){
	super(numberOfDoors, isSportCar);
	
		this.isCabriolet=isCabriolet;
		this.price=price;
		
	}
	public void switchTurbo() {
	System.out.println("Turbo is now ON ");
	}

	public boolean isCabriolet() {
		return isCabriolet;
	}

	public void setCabriolet(boolean isCabriolet) {
		this.isCabriolet = isCabriolet;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		if(price>99900.9)
		this.price = price;
	}
	public boolean isSportCar() {
		return isSportCar;
	}
	public void setSportCar(boolean isSportCar) {
		this.isSportCar = isSportCar;
	}
	@Override
	 protected void startEngine(){
		if(super.getIsEngineOn()==false){
			super.startEngine();
			switchTurbo();
		}
		else
			switchTurbo();
		
	}

}
